#ifndef THREADDAQ_H
#define THREADDAQ_H

#include <QThread>

class ThreadDAQ : public QThread
{
    Q_OBJECT
public:
    explicit ThreadDAQ(QObject *parent = nullptr);

    void stopThread() ;


protected:
    void run() Q_DECL_OVERRIDE;

private :
    bool m_stop=false; //停止线程
};


class ThreadShow: public QThread{

    Q_OBJECT

public:
    explicit ThreadShow(QObject *parent = nullptr);

    void stopThread();

private :
    bool m_stop=false; //停止线程
protected:
    void run() Q_DECL_OVERRIDE;

signals:
    void newValue(int *data, int count, int seq) ;
};

#endif // THREADDAQ_H
